/**
 * @author Duy Quoc	
 */

package datas.main;

import java.util.logging.Logger;

import org.andengine.engine.options.EngineOptions;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.sprite.Sprite;
import org.andengine.ui.activity.SimpleBaseGameActivity;

import android.graphics.Canvas;
import android.util.Log;
import android.view.KeyEvent;
import android.widget.Toast;
public class MainActivity extends SimpleBaseGameActivity{
	public EngineOptions onCreateEngineOptions() {
		return GameCenterController.initGameEngineOptions(this);
	}

	@Override
	protected void onCreateResources() {
		GameCenterController.initilizeGame();
	}

	@Override
	protected Scene onCreateScene() {
		//Log.d("Success", "on Created scene");
		return GameCenterController.getFirstScreen(); 
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		return super.onKeyDown(keyCode, event);
	}
	
	@Override
	public boolean onKeyUp(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		
		return super.onKeyUp(keyCode, event);
	}
	
	@Override
	public boolean onKeyLongPress(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		return super.onKeyLongPress(keyCode, event);
	}	
}
